class MajorHazardObj {
  int id;
  String dwbm;
  String dangerName;
  String title;
  String type;
  String typePin;
  String max;
  String min;
  String unit;
  String upperLimit;
  String lowerLimit;
  String page;
  String highHighLimit;
  String lowLowLimit;

  MajorHazardObj(
      {this.id,
        this.dwbm,
        this.dangerName,
        this.title,
        this.type,
        this.typePin,
        this.max,
        this.min,
        this.unit,
        this.upperLimit,
        this.lowerLimit,
        this.page,
        this.highHighLimit,
        this.lowLowLimit});

  factory MajorHazardObj.fromJson(Map<String, dynamic> json) {
    return MajorHazardObj(
      id:json['id'],
      dwbm:json['dwbm'] ?? '',
      dangerName:json['dangerName'] ?? '',
      title:json['title'] ?? '',
      type:json['type'] ?? '',
      typePin:json['typePin'] ?? '',
      max:json['max'] ?? '',
      min:json['min'] ?? '',
      unit:json['unit'] ?? '',
      upperLimit:json['upperLimit'] ?? '',
      lowerLimit:json['lowerLimit'] ?? '',
      page:json['page'] ?? '',
      highHighLimit:json['highHighLimit'] ?? '',
      lowLowLimit:json['lowLowLimit'] ?? '',
    );
  }
}
